package democmp;

import java.util.Comparator;

/**
 * ClassName NameComparator
 * Description TODO
 * Author Yanyan
 * Date 2025/11/14 22:41
 * Version 1.0
 */
public class NameComparator implements Comparator<Student> {
    @Override
    public int compare(Student o1, Student o2) {
        //return o1.name - o2.name;
        return o1.name.compareTo(o2.name);
    }
}